def call(project, branch, packageType){

    def upgradeToolsTemplate = [
        'label' : [
            'client' : 'WINSERVER',
            'web' : 'PYTHON'
        ],
        'image' : [
            'client' : '',
            'web' : '192.168.9.38:18082/yidao/jnlp-slave:py3_linux64'
        ],
        'gitUrl' : 'ssh://gerrit@192.168.30.243:29418/rk3399_image_maker',
        'branch' : branch,
        'scriptDir' : [
            'client' : 'YD_installer',
            'web' : 'yd_web_upgrade'
        ],
        'buildScript' : [
            'client' : 'build.bat',
            'web' : './build_in_docker.sh'
        ],
        'packageScript' : [
            'client' : 'package.bat',
            'web' : './package_in_docker.sh'
        ],
        'config' : [
            'client' : '',
            'web' : 'yd_web_upgrade/web_upgrade/cfg/config.json'
        ],
        'artifact' : [
            'client' : 'YD_installer\\YD_installer_win',
            'web' : 'yd_web_upgrade/web_upgrade'
        ],
        'package' : [
            'client' : 'YD_installer\\YD_installer_win.zip',
            'web' : 'yd_web_upgrade/web_upgrade.tar.gz'
        ],
        'artifactory' : "D200Robot/${project}"
    ]

    def appTemplate = [
        'label' : [
            'win' : 'WINSERVER',
            'android' : 'ANDROID'
        ],
        'image' : [
            'win' : '',
            'android' : '192.168.9.38:18082/yidao/jnlp-slave:cordova_android'
        ],
        'gitUrl' : 'ssh://gerrit@192.168.30.243:29418/rk3399_image_maker',
        'branch' : branch,
        'scriptDir' : [
            'win' : 'yd_robot_tool',
            'android' : 'yd_robot_tool'
        ],
        'buildScript' : [
            'win' : 'scripts\\build_exe_for_jenkins.bat',
            'android' : 'scripts/build_apk.sh'
        ],
        'packageScript' : [
            'win' : 'scripts\\package.bat',
            'android' : ''
        ],
        'config' : [
            'win' : '',
            'android' : ''
        ],
        'artifact' : [
            'win' : 'yd_robot_tool\\dist\\build\\D200App-win32-x64',
            'android' : 'yd_robot_tool/dist'
        ],
        'package' : [
            'win' : 'yd_robot_tool\\dist\\D200App-win32-x64.zip',
            'android' : 'D200.apk'
        ],
        'artifactory' : "D200Robot/${project}"
    ]

    def buildTemplate = [
        'upgradeTools' : upgradeToolsTemplate,
        'appTools' : appTemplate
    ]

    return buildTemplate.get(project)

}